#include "tcp_server.hpp"
#include "handler.hpp"

int main(int argc,char* argv[])
{
	if(argc != 2)
	{
		std::cout<<"参数不足"<<std::endl;
		return 1;
	}
	uint16_t port = atoi(argv[1]);
	tcpserver::TcpServer* svr = new tcpserver::TcpServer(port);
	svr->InitTcpServer();
	svr->Loop(ns_handler::Handlersock_v2);
	return 0;
}
